<?php include './application/views/top.php'; ?>
<script src="/static/js/ajaxfileupload.js"></script>
<script src="/static/js/gsdai.js"></script>
<script src="/static/js/My97DatePicker/WdatePicker.js"></script>
<script src="/static/js/formCheck.js"></script>
<div class="clear"></div>
<div class="user_bottom all"></div>
<div class="clear h50"></div>
<div class="layout uc">
	<?php include './application/views/user/left.php'; ?>
	<?php
		$sex = $v['sex'];
		$cardType = $v['cardType'];
	?>
	<div class="right">
		<div class="menu_list"><?php include './application/views/user/menu.php'; ?></div>
        <div class="cont">
        	<div class="tishi">个人资金详情</div>
            <div class="clear h20"></div>
           	<dl class="w306">
               	<dt>账户总额：</dt>
				<dd><?php echo number_format(isset($account['total']) ? $account['total'] : 0,2);?></dd>
			</dl>
           	<dl class="w306">
               	<dt>可用金额：</dt>
				<dd><?php echo number_format(isset($account['use_money']) ? $account['use_money'] : 0,2);?></dd>
			</dl>
           	<dl class="w306">
               	<dt>冻结金额：</dt>
				<dd><?php echo number_format(isset($account['no_use_money']) ? $account['no_use_money'] : 0,2);?></dd>
			</dl>
           	<dl class="w306">
               	<dt>待收金额：</dt>
				<dd><?php echo number_format(isset($account['collection']) ? $account['collection'] : 0,2);?></dd>
			</dl>
           	<dl class="w306">
               	<dt>充值总额：</dt>
				<dd><?php echo number_format($recharge_group['total'],2);?></dd>
			</dl>
           	<dl class="w306">
               	<dt>提现总额：</dt>
				<dd><?php echo number_format($cash_group['total'],2);?></dd>
			</dl>
            <dl class="w306">
               	<dt>扣费总额：</dt>
				<dd><?php echo number_format($recharge_fee+$cash_group['fee']+(isset($log_group[AC_OTHER]) ? $log_group[AC_OTHER] : 0)+(isset($log_group[BORROW_FEE]) ? $log_group[BORROW_FEE] : 0),2);?></dd>
			</dl>
           	<dl class="w306">
               	<dt>充值手续费：</dt>
				<dd><?php echo number_format($recharge_fee, 2);?></dd>
			</dl>
            <dl class="w306">
               	<dt>提现手续费：</dt>
				<dd><?php echo number_format($cash_group['fee'],2);?></dd>
			</dl>
            <div class="clear cch1"></div>
            <div class="clear h20"></div>
           	<dl class="w306">
               	<dt>投标总额：</dt>
				<dd><?php echo number_format(isset($tender_total)?$tender_total:0,2);?></dd>
			</dl>
           	<dl class="w306">
               	<dt>已收总额：</dt>
				<dd><?php echo number_format(isset($ycollection_total)?$ycollection_total:0,2);?></dd>
			</dl>
           	<dl class="w306">
               	<dt>已收本金：</dt>
				<dd><?php echo number_format(isset($ycollection_capital)?$ycollection_capital:0,2);?></dd>
			</dl>
           	<dl class="w306">
               	<dt>已收利息总额：</dt>
				<dd><?php echo number_format(isset($ycollection_interest)?$ycollection_interest:0, 2);?></dd>
			</dl>
           	<dl class="w306">
               	<dt>投标奖励总额：</dt>
				<dd><?php echo number_format(isset($log_group[AWARD_ADD]) ? $log_group[AWARD_ADD] : 0, 2);?></dd>
			</dl>
           	<dl class="w306 cb">
               	<dt>待收总额：</dt>
				<dd><?php echo number_format(isset($collection_total)?$collection_total:0,2);?></dd>
			</dl>
           	<dl class="w306">
               	<dt>待收本金：</dt>
				<dd><?php echo number_format(isset($collection_capital)?$collection_capital:0,2);?></dd>
			</dl>
           	<dl class="w306">
               	<dt>待收利息：</dt>
				<dd><?php echo number_format(isset($collection_interest)?$collection_interest:0,2);?></dd>
			</dl>
           	<dl class="w306 cb">
               	<dt>最近回款日期：</dt>
				<dd><?php echo $first_collection_time>0?date('Y-m-d', $first_collection_time):"无";?></dd>
			</dl>
           	<dl class="w306">
               	<dt>逾期收入总额：</dt>
				<dd><?php echo number_format(isset($late_collection_account)?$late_collection_account:0,2);?></dd>
			</dl>
            <div class="clear cch1"></div>
            <div class="clear h20"></div>
           	<dl class="w306">
               	<dt>借款总额：</dt>
				<dd><?php echo number_format(isset($repayment_total)?$repayment_total:0,2);?></dd>
			</dl>
           	<dl class="w306">
               	<dt>已还总额：</dt>
				<dd><?php echo number_format(isset($yrepayment_total)?$yrepayment_total:0,2);?></dd>
			</dl>
           	<dl class="w306">
               	<dt>未还总额：</dt>
				<dd><?php echo number_format(isset($wrepayment_total)?$wrepayment_total:0,2);?></dd>
			</dl>
           	<dl class="w306">
               	<dt>逾期利息总额：</dt>
				<dd><?php echo number_format(isset($late_repayment_account)?$late_repayment_account:0,2);?></dd>
			</dl>
           	<dl class="w306">
               	<dt>最近还款日期：</dt>
				<dd><?php echo $first_repayment_time>0?date('Y-m-d', $first_repayment_time):"无";?></dd>
			</dl>
           	<dl class="w306">
               	<dt>最近需还金额：</dt>
				<dd><?php echo number_format(isset($first_repayment_account)?$first_repayment_account:0,2);?></dd>
			</dl>
            <div class="tishi">最近一周资金统计</div>
            <div class="clear h30"></div>
			<ul class="tbt">
                <li class="w108">日期</li>
                <li class="w90">成功借款</li>
                <li class="w90">成功还款</li>
                <li class="w90">充值</li>
                <li class="w90">投标</li>
                <li class="w90">新增待收</li>
                <li class="w90">投标奖励</li>
                <li class="w90">收到还款</li>
                <li class="w90">提现</li>
                <li class="w90 npr">提现手续费</li>
			</ul>
            <?php foreach($week_log as $k => $val){?>
			<ul class="tbc">
                <li class="w108"><?php echo $k;?></li>
                <li class="w90"><?php echo number_format(isset($val['6']) ? $val['6'] : 0,2);?></li>
                <li class="w90"><?php echo number_format(isset($val['12']) ? $val['12'] : 0,2);?></li>
                <li class="w90"><?php echo number_format(isset($val['1']) ? $val['1'] : 0,2);?></li>
                <li class="w90"><?php echo number_format(isset($val['5']) ? $val['5'] : 0,2);?></li>
                <li class="w90"><?php echo number_format(isset($val['15']) ? $val['15'] : 0,2);?></li>
                <li class="w90"><?php echo number_format(isset($val['11']) ? $val['11'] : 0,2);?></li>
                <li class="w90"><?php echo number_format(isset($val['17']) ? $val['17'] : 0,2);?></li>
                <li class="w90"><?php echo number_format(isset($val['20']) ? $val['20'] : 0,2);?></li>
                <li class="w90 npr"><?php echo number_format(isset($val['tx_fee']) ? $val['tx_fee'] : 0,2);?></li>
			</ul>
            <?php }?>
        </div>
	</div>
</div>
<div class="clear h50"></div>
<?php include "./application/views/footer.php";?>